package com.fly.snailrun.base.exception;

/**
 * Throw this when method not allowed occurs.
 *
 * @author danny
 */
public class NotSupportedMethodException extends ServiceException {

    /**
     * Constructs a new not-supported-method exception with the specified error code and error
     * message.
     */
    public NotSupportedMethodException(String errCode, String errMsg) {
        super(errCode, errMsg);
    }

    /**
     * Constructs a new not-supported-method exception with the specified error code, error message and
     * cause.
     *
     * <p>NOTE: the exception cause is normally not needed unless you want suppress some system
     * exception and rethrow it as a new not-supported-method  exception.
     */
    public NotSupportedMethodException(String errCode, String errMsg, Throwable cause) {
        super(errCode, errMsg, cause);
    }
}
